﻿@model IEnumerable<NVSecurity.Models.CompanyInfo>
@using NVSecurity.Models;
@{
    ViewBag.Title = "Index";
    
}

<div class="mar10 borall">
    <div class="floatl">
        <span class="floatl">
            <img src="/Areas/Admin/images/icon-48-generic.png" /></span>
        <span class="title-name">Thông tin công ty</span>
    </div>
</div>

<!--end borall-->
<div class="clear0"></div>
<div class="mar10 borall">
    <table class="formtable">
        <tbody>
            <tr>
                <th>Tên công ty</th>
                <th>Địa chỉ</th>
                <th>Điện thoại</th>
                 <th>Fax</th>
                 <th>Email</th>
                <th style="text-align:right">Action</th>
            </tr>

            @foreach (var item in Model)
            {
                <tr>                  
                    <td >
                        @Html.DisplayFor(modelItem => item.CompanyName)
                    </td>
                    <td >
                        @Html.DisplayFor(modelItem => item.Address)
                    </td>
                    <td >
                        @Html.DisplayFor(modelItem => item.Phone)
                    </td>
                    <td >
                        @Html.DisplayFor(modelItem => item.Fax)
                    </td>
                    <td >
                        @Html.DisplayFor(modelItem => item.Email)
                    </td>
                    <td style="text-align: right">
                        <a class="button blue" style="float:right" title="Sửa" href="/@NVSecurity.Models.GlobalVariables.PathFolderName/CompanyInfo/Edit?id=@item.ID">
                            <div class="icon">
                                <p class="ic-edit"></p>
                            </div>
                        </a>
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
<script>$("tr:even").css("background-color", "#f2f2f2");</script>
